package com.ps.feign;

import com.ps.feign.impl.CollectFeignImpl;
import com.ps.property.TOtherCollect;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author gt
 * @类说明：
 * @date 2020/10/27 19:21
 */
@FeignClient(value = "",fallback = CollectFeignImpl.class)
public interface CollectFeign {
    @PostMapping("/collectAdd-provide")
    int collectAdd(@RequestBody TOtherCollect tOtherCollect);

    @GetMapping("/collectQuery-provide")
    List<TOtherCollect> collectQuery(@RequestParam("currentPage") int currentPage, @RequestParam("pageSize") int pageSize);

    @PostMapping("/collectUpdate-provide")
    int collectUpdate(@RequestBody TOtherCollect tOtherCollect);

    @GetMapping("/collectQueryById-provide/{collectId}")
    TOtherCollect collectQueryById(@PathVariable int collectId);
}
